﻿using System.Collections.ObjectModel;
using TheLocal.Model;
using TheLocal.Model.Countries;

namespace TheLocal.ViewModel
{
    public class CountryListViewModel : ObservableCollection<Country>
    {
        private Country selectedCountry;

        public CountryListViewModel()
        {
            this.Add(new Sweden());
            this.Add(new France());
            this.Add(new Germany());
            this.Add(new Norway());
            this.Add(new Switzerland());   
        }

        public Country SelectedCountry 
        {
            get
            {
                return selectedCountry;
            }
            set
            {
                selectedCountry = value;
            }
        }
    }
}
